﻿using MediatR;

namespace Architecture.API.Application.TraceabilityCommand.SlaughterCommand
{
    /// <summary>
    /// 
    /// </summary>
    public class UpdateSlaughterCommand : IRequest<int>
    {
        /// <summary>
        /// 屠宰ID
        /// </summary>
        public int SlaughterId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch { get; set; }

        /// <summary>
        /// 到厂均重
        /// </summary>
        public decimal AveWeight { get; set; }

        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime ArriveDate { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime SlaughterTime { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int ShoppingId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdatedDate { get; set; }

        /// <summary>
        /// 删除人
        /// </summary>
        public string? DeletedBy { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeletedDate { get; set; }

        /// <summary>
        /// 逻辑状态
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
